package test1;

import java.io.UnsupportedEncodingException;

public class JavaEncodeingTest {

    public static void main(String[] ars) throws UnsupportedEncodingException {
        String encodeing = System.getProperty("file.encoding");
        System.out.println(encodeing);
        String str = "中午测试";
        String deptName = new String(str.getBytes(), "utf-8");
        System.out.println("deptName : " + deptName);
    } 
}
